From: Michael Catanzaro Date: Wed, 25 Mar 2020 17:17:28 +0000 (-0500) Subject: endSessionDialog: apply updates by default X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~66 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ddb85c03c370b481173a92b1a4e1560afdddc9b1;p=gnome-shell.git endSessionDialog: apply updates by default Users can still uncheck the box to avoid applying updates, but by default we will encourage the user to update. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2427 --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 42ae0d3f2..52192c73b 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -653,7 +653,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { _setCheckBoxLabel(this._checkBox, dialogContent.checkBoxText || ''); this._checkBox.visible = dialogContent.checkBoxText && updatePrepared && updatesAllowed; - this._checkBox.checked = updatePrepared && updateTriggered; + this._checkBox.checked = this._checkBox.visible; // We show the warning either together with the checkbox, or when // updates have already been triggered, but the user doesn't have